import { BaseWindow } from "../../../../../component/window/BaseWindow";
import { ILayer } from "../../../../../mvc/interfaces/ILayer";
import { Language } from "../../../../../../extend/language/Language";
import { SkillRuneHandbookTabbar } from "./SkillRuneHandbookTabbar";
import { SkillRuneHandbookRightPart } from "./SkillRuneHandbookRightPart";
type int = number;
//class SkillRuneHandbookWin
    
    export  class SkillRuneHandbookWin extends BaseWindow
    {
        constructor(arg1: ILayer=null)
        {
            super(arg1);
            this.setSize(700, 491);
            this.title = Language.getString(80070);
            this.titleHeight = 28;
            this._isCategoryInited = false;
            this.initView();
            return;
        }

        public customExpandCategory(arg1: int): void
        {
            this._tab.customExpandCategory(arg1);
            return;
        }

        public getCurCategoryType(): int
        {
            return this._tab.getCurType();
        }

        public updateRightPartData(arg1: Array<any>): void
        {
            this._rightPart.updateData(arg1);
            return;
        }

        public get isCategoryInited(): Boolean
        {
            return this._isCategoryInited;
        }

        public updateCategory(arg1: Array<any>): void
        {
            this._tab.data = arg1;
            this._isCategoryInited = true;
            return;
        }

        public expandTab(arg1: int): void
        {
            this._tab.expandItem(arg1);
            return;
        }

        public shrinTab(arg1: int): void
        {
            this._tab.shrinItem(arg1);
            return;
        }

        public getCurSubName(): string
        {
            return this._tab.getCurSubName();
        }

        public setCurSubTab(arg1: int): void
        {
            this._tab.setCurSubTab(arg1);
            return;
        }

        /* internal  */initView(): void
        {
            this._tab = new SkillRuneHandbookTabbar();
            this._tab.x = 19;
            this._tab.y = 40;
            this.addChild(this._tab);
            this._rightPart = new SkillRuneHandbookRightPart();
            this._rightPart.x = 187;
            this._rightPart.y = 40;
            this.addChild(this._rightPart);
            return;
        }

        /* internal */ /* var */_tab: SkillRuneHandbookTabbar;

        /* internal */ /* var */_rightPart: SkillRuneHandbookRightPart;

        /* internal */ /* var */_isCategoryInited: Boolean;
    }
